package cn.com.shopec.erp.multiChannel.dao;

import java.util.List;

import cn.com.shopec.erp.common.orm.IHibernateEntityDao;
import cn.com.shopec.erp.common.page.PageFinder;
import cn.com.shopec.erp.common.page.PageQuery;
import cn.com.shopec.erp.multiChannel.entity.ChannelOrder;
import cn.com.shopec.erp.product.entity.ProductStockExt;

public interface IChannelOrderDao extends IHibernateEntityDao<ChannelOrder> {
	
	/**
	 * 根据订单编号查找订单
	 * @param orderId
	 * @return
	 */
	public ChannelOrder queryByOrderId(String orderId);
	
	/**
	 * 条件查找订单
	 * @param orderId
	 * @return
	 */
	public List queryByOrder(ChannelOrder order);
	
	/**
	 * 分页查询渠道订单
	 * @param orderId
	 * @return
	 */
	public PageFinder<ChannelOrder> productStockPaged(ChannelOrder order,PageQuery pageQuery);
	
	public int updateByChannelOrderId(ChannelOrder channelOrder);

}
